<template>
  <div class="headers">
    <div class="left">
      <slot name="left"></slot>
    </div>
    <div class="inMiddle">{{ text }}</div>
    <div class="right"></div>
  </div>
</template>

<script>
export default {
  props: {
    text: {
      type: String,
      required: true,
    },
  },
  data() {
    return {};
  },

  mounted() {},

  methods: {
    back(e) {
      this.$emit("back", e);
    },
  },
};
</script>

<style lang="less" scoped>
.headers {
  // position: fixed;
  left: 0;
  top: 39px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  background: #f7f7f7;
  height: 40px;
  line-height: 40px;
  color: #fcfeff;
}
.inMiddle {
  color: #799dc6;
  font-size: 18px;
  margin-right: 35px;
}
.left {
  color: #799dc6;
}
</style>